﻿package com.obas.model.type
{
	import com.ease.common.enums.TextualEnum;
	import com.ease.lang.Enum;
	import com.ease.lang.EnumConstants;
	import com.obas.model.type.ProcessDimensionType;

	[Bindable]
	[RemoteClass(alias="com.obas.model.type.ProcessDimensionType")]

	public class ProcessDimensionType extends Enum
	{
		/* static init */
		{ initEnum(ProcessDimensionType); }

		/* Constants */
		public static const KPI_BASE:ProcessDimensionType = new ProcessDimensionType("KPI_BASE", "KPI基础数据");
		public static const KPI_AGG:ProcessDimensionType = new ProcessDimensionType("KPI_AGG", "KPI聚合数据");
		public static const KQI_BASE:ProcessDimensionType = new ProcessDimensionType("KQI_BASE", "KQI基础数据");
		public static const KQI_AGG:ProcessDimensionType = new ProcessDimensionType("KQI_AGG", "KQI聚合数据");
		public static const KQI_ACC_CYCLE:ProcessDimensionType = new ProcessDimensionType("KQI_ACC_CYCLE", "KQI周期累计数据");
		public static const KQI_ACC:ProcessDimensionType = new ProcessDimensionType("KQI_ACC", "KQI累计数据");

		private var _text:String;

		/*public*/ function ProcessDimensionType(name:String=null ,text:String=null) {
			super.name = name;
			this._text = text;
		}

		public function get text():String  { return this._text; }

		/* constant query */
		public static function getEnumConstants():Array {
			return Enum.getEnumConstants(ProcessDimensionType);
		}

		public static function get(constantName:String, caseSensitive:Boolean = false):ProcessDimensionType {
			return ProcessDimensionType(Enum.get(ProcessDimensionType, constantName, caseSensitive));
		}
	}
}